/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.entities;
import java.util.Date;
import java.util.List;



public class News {
    private int idNews;
    private String title;
    private String sumary;
    private String contents;
    private String image;
    private NewsType newsType;
    private User user;
    private boolean Actived;
    private Date dateNews;
    
    List<NewsType> newsTypeList = null; 
    List<User> userList = null;
    public News() {
    }

    public News(int idNews) {
        this.idNews = idNews;
    }

    public News(int idNews, boolean Actived) {
        this.idNews = idNews;
        this.Actived = Actived;
        
    }

    public News(String title, String sumary, String contents, String image, NewsType newsType, User user, boolean Actived, Date dateNews) {
        this.title = title;
        this.sumary = sumary;
        this.contents = contents;
        this.image = image;
        this.newsType = newsType;
        this.user = user;
        this.Actived = Actived;
        this.dateNews = dateNews;
    }

    

    
    
    

    public int getIdNews() {
        return idNews;
    }

    public void setIdNews(int idNews) {
        this.idNews = idNews;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSumary() {
        return sumary;
    }

    public void setSumary(String sumary) {
        this.sumary = sumary;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public NewsType getNewsType() {
        return newsType;
    }

    public void setNewsType(NewsType newsType) {
        this.newsType = newsType;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public boolean isActived() {
        return Actived;
    }

    public void setActived(boolean Actived) {
        this.Actived = Actived;
    }

    public Date getDateNews() {
        return dateNews;
    }

    public void setDateNews(Date dateNews) {
        this.dateNews = dateNews;
    }

    

    public List<NewsType> getNewsTypeList() {
        return newsTypeList;
    }

    public void setNewsTypeList(List<NewsType> newsTypeList) {
        this.newsTypeList = newsTypeList;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }
    
    
    
}
